package com.gitee.feizns.zxw.web.controller.api;

import com.gitee.feizns.web.domain.result.Ret;
import com.gitee.feizns.zxw.domain.portal.vo.page.pc.theme.destination.FirstVo;
import com.gitee.feizns.zxw.service.api.ApiPagePcThemeDestinationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 主题页 => 目的地
 * @author feizns
 * @since 2019/9/9
 */
@RestController
@RequestMapping("/api/v1/portal/page/pc/theme/destination")
public class ApiPagePcThemeDestinationController {

    @Autowired
    private ApiPagePcThemeDestinationService apiPagePcThemeDestinationService;

    /**
     * 目的地页面
     * @return com.gitee.feizns.zxw.domain.portal.vo.page.pc.theme.destination.FirstVo
     */
    @GetMapping
    public Ret<FirstVo> first() {
        return Ret.ok(apiPagePcThemeDestinationService.first());
    }

}
